package com.huirui.server.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Schema(description = "商品视图对象，用于展示商品基本信息")
public class ProductBriefInfoVo {

    @Schema(description = "商品唯一标识", example = "1")
    private Long id;

    @Schema(description = "商品ID")
    private Long productId;

    @Schema(description = "商品名称", example = "麦迪康 一次性使用灭菌橡胶外科手套")
    private String productName;

    @Schema(description = "商品价格", example = "99.90")
    private Double discountPrice;

    @Schema(description = "划线价格")
    private Double originalPrice;

    @Schema(description = "上架时间")
    private LocalDateTime createTime;

    @Schema(description = "规格数量")
    private Long specificationNumber;

    @Schema(description = "Tags")
    private List<String> tags;

    @Schema(description = "商品图片url")
    private String image;

    @Schema(description = "是否还有库存")
    private Boolean hasStock;
}
